package main

import (
	"fmt"
	"github.com/shopspring/decimal"
	"github.com/tidwall/gjson"
	"go-study/calc"
)

func init() {
	fmt.Println("init")
}

func main() {
	add := calc.Add(1, 2)
	fmt.Println(add)
	fmt.Println(calc.Age)

	n, err := decimal.NewFromString("-123.4567")
	fmt.Println(n, err)
	var json = `{"name":{"first":"Janet","last":"Prichard"},"age":47}`
	value := gjson.Get(json, "name.last")
	fmt.Println(value.String())
}
